All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class quicktime.qd3d.camera.ViewPlaneCameraData

java.lang.Object
   |
   +----quicktime.util.QTByteObject
           |
           +----quicktime.qd3d.camera.CameraData
                   |
                   +----quicktime.qd3d.camera.ViewPlaneCameraData

public final class ViewPlaneCameraData
extends CameraData
implements PrimitivesLib
A perspective camera specified in terms of an arbitrary view plane. This is most useful when setting the camera to look at a particular object. The mViewPlane is set to distance from the camera to the object. The halfWidth is set to half the width of the cross section of the object, and the halfHeight equal to the halfWidth divided by the aspect ratio of the viewPort. This is the only perspective camera with specifications for off-axis viewing, which is desirable for scrolling. refer to TQ3ViewPlaneCameraData in QuickDraw3d


Variable Index

 o kNativeSize
This is the size (the number of bytes) that are required for this class

Constructor Index

 o ViewPlaneCameraData()
Creates a ViewPlaneCameraData object containing no data.
 o ViewPlaneCameraData(CameraData, float, float, float, float, float)
Sets the ViewPlaneCameraData object's data.

Method Index

 o clone()
Returns a copy of this class.
 o getCenterX()
returns the centerXOnViewPlane
 o getCenterY()
returns the centerYOnViewPlane
 o getHalfHeight()
returns the halfHeightAtViewPlane
 o getHalfWidth()
returns the halfWidthAtViewPlane
 o getViewPlane()
returns the viewPlane
 o setCenterX(float)
sets the centerXOnViewPlane
 o setCenterY(float)
sets the centerYOnViewPlane
 o setHalfHeight(float)
sets the halfHeightAtViewPlane
 o setHalfWidth(float)
sets the halfWidthAtViewPlane
 o setViewPlane(float)
sets the viewPlane

Variables

 o kNativeSize
 public static final int kNativeSize
This is the size (the number of bytes) that are required for this class

Constructors

 o ViewPlaneCameraData
 public ViewPlaneCameraData()
Creates a ViewPlaneCameraData object containing no data.

 o ViewPlaneCameraData
 public ViewPlaneCameraData(CameraData cameraData,
                            float viewPlane,
                            float halfWidthAtViewPlane,
                            float halfHeightAtViewPlane,
                            float centerXOnViewPlane,
                            float centerYOnViewPlane)
Sets the ViewPlaneCameraData object's data.

Parameters:
cameraData - The camera data.

Methods

 o getViewPlane
 public float getViewPlane()
returns the viewPlane

 o getHalfWidth
 public float getHalfWidth()
returns the halfWidthAtViewPlane

 o getHalfHeight
 public float getHalfHeight()
returns the halfHeightAtViewPlane

 o getCenterX
 public float getCenterX()
returns the centerXOnViewPlane

 o getCenterY
 public float getCenterY()
returns the centerYOnViewPlane

 o setViewPlane
 public void setViewPlane(float viewPlane)
sets the viewPlane

 o setHalfWidth
 public void setHalfWidth(float halfWidthAtViewPlane)
sets the halfWidthAtViewPlane

 o setHalfHeight
 public void setHalfHeight(float halfHeightAtViewPlane)
sets the halfHeightAtViewPlane

 o setCenterX
 public void setCenterX(float centerXOnViewPlane)
sets the centerXOnViewPlane

 o setCenterY
 public void setCenterY(float centerYOnViewPlane)
sets the centerYOnViewPlane

 o clone
 public Object clone()
Returns a copy of this class.

Overrides:
clone in class CameraData

All Packages  Class Hierarchy  This Package  Previous  Next  Index